package com.funcourse.demo.sms.vcode.repo;

import com.funcourse.demo.sms.vcode.VerifyCodeFunction;
import com.funcourse.demo.sms.vcode.VerifyCodeMongoBean;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.util.CollectionUtils;

public interface VerifyCodeRepo extends MongoRepository<VerifyCodeMongoBean, String> {

  List<VerifyCodeMongoBean> findByIdentAndVerifyCodeAndFunction(String ident, String verifyCode,
      VerifyCodeFunction function);

  int deleteByIdentAndFunction(String ident, VerifyCodeFunction function);

//  Page<VerifyCodeMongoBean> findByIdentAndFunctionAndUsed(String ident,String function,Boolean used, Pageable pageable);

}
